<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:func="http://dip.com.br/functions">


	<table>
		<tr>
			<td><h:outputText value="Nome:" /></td>
			<td><p:inputText value="#{listagemPerfil.query.descricao}" /></td>
			<td><p:commandButton update="#{func:getFooClientId('divTablePerfil')}" action="#{listagemPerfil.acaoPesquisar}"
					value="Pesquisar" /></td>
		</tr>
	</table>
	<h:panelGroup id="divTablePerfil" layout="block"
		style="overflow:auto;  height:280px; width:100%;">
		<p:dataTable  var="perfil" value="#{listagemPerfil.lista}">
			<f:facet name="header">  
            		Lista de Perfil  
        		</f:facet>
			<p:column>
				<f:facet name="header">  
            		    Modulo  
            		</f:facet>
				<p:commandLink action="#{listagemPerfil.entidadeSelecionada}"
					update="#{ouvinteRendered}" onstart="#{popUpName}.hide()">
					<h:outputText value="#{perfil.descricao}" />
					<f:setPropertyActionListener target="#{listagemPerfil.query}"
						value="#{perfil}" />
				</p:commandLink>
				<f:facet name="footer">  
                		Modulo
            		</f:facet>
			</p:column>
			<f:facet name="footer">  
          		  Lista de Perfil    
        		</f:facet>
		</p:dataTable>
	</h:panelGroup>



</ui:composition>